package cate.game.activity;

import cate.game.res.MixRes;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "转盘日志详情")
public class LogDetail {

    @NoteField(value = "服务器id")
    public int srvId;

    @NoteField(value = "玩家名称")
    public String name;

    @NoteField(value = "奖励")
    public MixRes reward;

    public LogDetail() {}

    public LogDetail(String name, MixRes reward) {
        this.name = name;
        this.reward = reward;
    }

    public LogDetail(int srvId, String name, MixRes reward) {
        this.srvId = srvId;
        this.name = name;
        this.reward = reward;
    }

    public void initialize() {
        if (reward == null) {
            reward = new MixRes();
        }
    }
}
